/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package SYSGEST.conexao;

import com.mysql.jdbc.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;

/**
 *
 * @author Mesopotanea
 */
public class ConectioFactory {

    public java.sql.Connection getConnection() {
        System.out.println("Conectando ao Banco de Dados");
        try {

            return DriverManager.getConnection("jdbc:mysql://localhost/sysgest", "root", "");

        } catch (SQLException e) {
            throw new RuntimeException(e);

        }

    }

}
